﻿using System.Windows;
using System.Linq;
using System.Text.RegularExpressions;
using System.Windows.Controls;
using System.Windows.Navigation;
using kursovaya.Data.Context;
using kursovaya.Data.Entity;

namespace kursovaya.Windows
{
    public partial class InventoryControl : Window
    {
        public InventoryControl()
        {
            InitializeComponent();
            LoadInventory();
        }

        private void LoadInventory()
        {
            using (var context = new DbContext())
            {
                var inventoryes = context.Inventoryes.ToList();
                InventoryDataGrid.ItemsSource = inventoryes;
            }
        }
    }
}